<?php

/*
 Example usage
 [source href="URL" lang="php"]
*/

$arr = array (
    0 => 'http://sizilienhotels.de/',
    1 => 'http://www.piazzista.eu/',
    2 => 'http://www.urlaub-und-reisen.net/',
);

$link = (in_array ($_GET['id'], array_keys ($arr))) ? $arr[$_GET['id']] : 'http://lloc.de/';
header ("HTTP/1.1 301 Moved Permanently");
header ("Location: " . $link);
exit ();

?>